# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-genesis-plus-gx
pkgver=0_git20230503
pkgrel=0
_commit="790776699bea2a570535e1632481aa27174c8dce"
pkgdesc="an enhanced port of Genesis Plus"
url="https://github.com/libretro/Genesis-Plus-GX"
arch="all"
license="custom"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/Genesis-Plus-GX/archive/$_commit.tar.gz"
builddir="$srcdir/Genesis-Plus-GX-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 genesis_plus_gx_libretro.so "$pkgdir"/usr/lib/libretro/genesis_plus_gx_libretro.so
}

sha512sums="
8ec11fd558606cdb696a81e192437649e160d25f055ce4089e3e50d48bbd7b0e9456bb8ec5decf7c8108528bde6098cc766ed7391160beddda11b744a888226e  libretro-genesis-plus-gx-790776699bea2a570535e1632481aa27174c8dce.tar.gz
"
